package com.dengyafei.mapper;

import com.dengyafei.bean.SharesEntity;
import com.dengyafei.bean.SharesEntityExample;
import java.util.List;

import com.dengyafei.domin.dto.SharesLikesDTO;
import com.dengyafei.domin.dto.SharesSearchDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface SharesEntityMapper {
    int countByExample(SharesEntityExample example);

    int deleteByExample(SharesEntityExample example);

    int deleteByPrimaryKey(Integer sid);

    int insert(SharesEntity record);

    int insertSelective(SharesEntity record);

    List<SharesEntity> selectByExample(SharesEntityExample example);

    SharesEntity selectByPrimaryKey(Integer sid);

    int updateByExampleSelective(@Param("record") SharesEntity record, @Param("example") SharesEntityExample example);

    int updateByExample(@Param("record") SharesEntity record, @Param("example") SharesEntityExample example);

    int updateByPrimaryKeySelective(SharesEntity record);

    int updateByPrimaryKey(SharesEntity record);

    List<SharesEntity> queryAllShares();

    List<SharesEntity> querySharesByCondition(SharesSearchDTO sharesSearchDTO);

    Integer updateLike(SharesLikesDTO sharesLikesDTO);

    SharesEntity queryOne(Integer hid,String content,String types);

    List<SharesEntity> queryByWhole(String content);

    List<SharesEntity> queryByHid(Integer hid);
}